<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>公告设置</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="https://g.alicdn.com/??kissy/k/1.4.2/seed-min.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.21/adapter.js"></script>
<link href="http://g.tbcdn.cn/kissy/k/1.3.2/??calendar/assets/shopmanage/dpl-min.css" rel="stylesheet">
<script src="/assets/shopmanage/main.js"></script> 
<script src="/assets/shopmanage/gamecfg_1.js"></script>
<script src="/assets/shopmanage/global_menu_kissy.js"></script>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">

 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">我的互动 >> 公告设置</h3>
		<div class="button-group pull-right">
		  {include file='../../../PublicView/global_menu.html'}
		</div>
		<!-- <span class="label label-info  pull-right"><i class="icon-white icon-home"></i></span> -->
		</div>
	  </div>
	  <hr />
	  {if $cfg && $cfg.id>0}
	  <div class="tips tips-small tips-info">
        <span class="x-icon x-icon-small x-icon-info"><i class="icon icon-white icon-info"></i></span>
        <div class="tips-content">请设置公告</div>
      </div>
	  {else}
	  <div class="tips tips-small tips-warning">
        <span class="x-icon x-icon-small x-icon-error"><i class="icon icon-white icon-info"></i></span>
        <div class="tips-content">当前时间没有活动，请手动设置公告</div>
      </div>
	  {/if}
	  <br />
	  <form method="post" action="/?a=gamegg_save&m=Shopmanage">
					<div class="form-horizontal">
						<div class="row">
							<div class="control-group span20">
							<label class="control-label">公告</label>
							<div class="controls control-row-auto span14  span-width">
									<div class="well">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
												设置您的公告内容。
											</span>
										</div>
											<div class="control-group offset1">
												<div class=" clearfix">
												<textarea class="span10" name="notice">{if $cfg.notice}{$cfg.notice}{else}活动自{$cfg.start_time|date_format:'%Y-%m-%d'}开始，奖品总价值{$gft.price}元，总中奖率{$gft.probability}%！{/if}
												</textarea>
												</div>
											</div>
									</div>
							</div>
							</div>
							<div class="control-group span20">
							<label class="control-label">活动规则</label>
							<div class="controls control-row-auto span14  span-width">
									<div class="well">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
												写明活动规则。系统已根据设置为您生成活动规则：
											</span>
										</div>
											<div class="control-group offset1">
												<div class=" clearfix">
												<textarea class="span10" name="notice_rule" style="height:200px">{if $cfg.notice_rule}{$cfg.notice_rule}{else}{if !$cfg.curtool}活动规则未定{else}{if $cfg.collect}收藏店铺方可抽奖。{/if}{if $cfg.brandid!=0}关注品牌方可抽奖。 {/if}{if $cfg.tms_newcomer}新用户可抽奖{$cfg.tms_newcomer}次。{/if}{if $cfg.tms_everyday}每天参与可抽奖{$cfg.tms_everyday}次。{/if}{if $tool_type==3}游戏设定：{if $cfg.range_time==1}每10分钟一轮。{/if}{if $cfg.range_time==3}每30分钟一轮。{/if}{if $cfg.range_time==4}每1小时一轮。{/if}每轮第一名可抽奖{$cfg.game_lv1_times}次。每轮第二名可抽奖{$cfg.game_lv2_times}次。每轮第三名可抽奖{$cfg.game_lv3_times}次。每轮其他名次可抽奖{$cfg.game_def_times}次。{/if}{if $cfg.orderset}每个{$cfg.order_payment}元以上的订单号{if $cfg.order_success_times>0}交易完成时抽奖{$cfg.order_success_times}次，{/if}{if $cfg.order_pay_times>0}交易付款后抽奖{$cfg.order_pay_times}次。{/if}{if $cfg.tms_goodrate}每个订单好评时可抽奖{$cfg.tms_goodrate}次。{/if}{if $cfg.order_payment_addon}订单金额超额时可累计次数，{if $cfg.order_payment_addon==10000}超几倍累计几次。{else}最多累计{$cfg.order_payment_addon}次。{/if}  {/if}{/if}{if $cfg.cart_items_count}将指定商品加入购物车可抽奖，每加入一款到购物车可抽奖{$cfg.tms_cartadd}次。 {/if}{/if}{/if}</textarea>
												</div>
											</div>
									</div>
							</div>
							</div>
							<div class="control-group span20">
							<label class="control-label">领奖方式</label>
							<div class="controls control-row-auto span14  span-width">
									<div class="well">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
												各种奖品的领奖方法。系统已为您生成内置的领奖方法：
											</span>
										</div>
											<div class="control-group offset1">
												<div class=" clearfix">
												<textarea class="span10" name="notice_receive" style="height:100px">{if $cfg.notice_receive}{$cfg.notice_receive}{else}实物奖：中奖后请截图发送给客服，经客服确认后请先拍下付款，收货并好评后全额返现。优惠券、包邮券、支付宝红包：请复制领奖链接，在浏览器内打开直接领取。{/if}{if $cfg.withdraw}活动结束以后{$cfg.withdraw}。{/if}
												</textarea>
												</div>
											</div>
									</div>
							</div>
							</div>
							<div class="control-group span20 centered ">
								<button type="submit" class="button button-primary">保存</button>
								<a href="/?a=gamegg&m=Shopmanage&auto=true" class="button js-auto">自动生成</a>
							</div>
						</div>
					</div>
				</form>
    </div>
  </div>
</body>
</html>